package cn.com.chengmandian.job.properties;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "cmd.job")
public class JobProperties {
    private boolean enable = false; // 开关

    private Admin admin = new Admin();

    private Executor executor = new Executor();

    @Data
    public class Executor {
        private int port;
    }

    @Data
    public class Admin {
        private String addresses;
    }
}
